package com.bike.bikeserver.constant;

/**
 * @version 1.0
 * @Author ZZX
 * @Date 2023/6/21 14:04
 */
//import io.jsonwebtoken.Claims;

/**
 * 通用常量信息
 */
public class Constants
{
    /**
     * 前台小程序端最大登录用户数
     */
    public static final Long FRONT_MAX_LOGIN_NUM = 20L;

    /**
     * 后台管理系统最大登录用户数
     */
    public static final Long BACK_MAX_LOGIN_NUM = 20L;

    /**
     * redis保存用户token时设置的key前缀
     */
    public static final String BACK_USER_PREFIX = "user-id:";

    /**
     * redis保存微信小程序前台用户token时设置的key前缀
     */
    public static final String FRONT_USER_PREFIX = "wx-user-id:";

    /**
     * 邮箱验证码有效期：5分钟
     */
    public static final Integer EMAIL_CODE_TIMEOUT = 60 * 5;

    /**
     * 微信小程序App ID
     */
    public static final String appId = "wxf5518fe95363274d";

    /**
     * 微信小程序App Secret
     */
    public static final String appSecret = "6722f6468d26b219eabc3ba2a652ee39";

    /**
     * 授权类型
     */
    public static final String grantType = "authorization_code";

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * token在jwt和redis中保存的过期时间，单位是秒
     */
    public static final Integer TOKEN_TIMEOUT = 36000;

    /**
     * 不必处理的状态简称
     */
    public static final String NO_NEED_TO_HANDLE = "不必处理";

    /**
     * 未处理的状态简称
     */
    public static final String UNHANDLED_STATE = "未处理";

    /**
     * 已完成
     */
    public static final String COMPLETED = "已完成";

    /**
     * 已拒绝
     */
    public static final String REJECTED = "已拒绝";

    /**
     * 单车调度
     */
    public static final String BIKE_DISPATCH = "单车调度";

    /**
     * 单车淤积
     */
    public static final String BIKE_SILTATION = "单车淤积";

    /**
     * 乱停乱放
     */
    public static final String PARKING_RANDOMLY = "乱停乱放";

    /**
     * 淤积请求申请图标
     */
    public static final String SUBMIT_LOGO = "submit";

    /**
     * 淤积请求完成图标
     */
    public static final String DONE_LOGO = "done";

    /**
     * 单车调度申请图标
     */
    public static final String APPLY_LOGO = "apply";

    /**
     * 单车调度完成图标
     */
    public static final String DISPATCH_LOGO = "dispatch";

    /**
     * 奖券未领取
     */
    public static final String REWARDS_UNGOT = "未领取（点击领取）";

    /**
     * 奖券已领取
     */
    public static final String REWARDS_GOT = "已领取";

    /**
     * 乱停乱放请求奖励积分数
     */
    public static final Integer PARKING_SCORE = 30;

    /**
     * 单车淤积请求奖励积分数
     */
    public static final Integer SILTATION_SCORE = 30;

    /**
     * 申请调度请求奖励积分数
     */
    public static final Integer APPLY_SCORE = 30;

    /**
     * 处理调度请求奖励积分数
     */
    public static final Integer DISPATCH_SCORE = 50;

    /**
     * 客服nickName
     */
    public static final String SERVER_NICKNAME = "客服";

    /**
     * 客服头像Url
     */
    public static final String SERVER_URL = "/images/avatar/manager.png";

    /**
     * 微信用户：普通用户
     */
    public static final String FRONT_USER = "普通用户";

    /**
     * 微信用户：工作人员
     */
    public static final String FRONT_ADMIN = "工作人员";

    /**
     * 后台用户类型：常规用户
     */
    public static final String BACK_USER_LOOK = "常规用户";

    /**
     * 后台用户类型：管理员
     */
    public static final String BACK_USER_ADMIN = "管理员";

    /**
     * 后台用户类型：最高权限者
     */
    public static final String BACK_USER_ROOT = "root";

    /**
     * 用户权限：仅查看
     */
    public static final String USER_RIGHT_LOOK = "look";

    /**
     * 用户权限：可编辑
     */
    public static final String USER_RIGHT_EDIT = "edit";

    /**
     * 用户权限：最高权限
     */
    public static final String USER_RIGHT_ALL = "all";
}

